"""
大帅逼：Cry Wolf
cpdd:287317579
author：28731
时间：2022/9/5 8:43
"""
# 导入第三方库
import json

data = {
    'username': 'zhangsan',
    'age': 18
}

with open(file='test.json', mode='w', encoding='utf-8') as f:
    json.dump(data, f)
